package com.endpoint.book.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.endpoint.book.dto.BookChapterAboutRespDto;
import com.endpoint.book.dto.BookIndexRespDto;
import com.endpoint.book.entity.BookIndex;
import com.baomidou.mybatisplus.extension.service.IService;
import com.endpoint.book.to.BookIndexTo;
import com.endpoint.common.utils.ResultBean;

import java.util.List;

/**
 * <p>
 * 小说目录表 服务类
 * </p>
 *
 */
public interface BookIndexService extends IService<BookIndex> {

    public ResultBean<List<BookIndexRespDto>> getChapterList(Long bookId);

    public ResultBean<Page<BookIndexTo>> getChapterPage(Long bookId, int pageNum, int pageSize);
}
